﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
	<meta name="viewport" content="width=device-width" />
	<title>订单</title>
	<link href="~/layui-v2.4.5/layui/css/layui.css" rel="stylesheet" /> 
</head>
<body>
	<table class="layui-hide" id="test"></table>


	<script src="~/layui-v2.4.5/layui/layui.all.js"></script>
	<script>
		layui.use('table', function () {
			var table = layui.table;

			table.render({
				elem: '#test'
				, url: '/BmobOrder/pagelist'
				, cols: [[
					{ field: 'objectId', width: 80, title: 'ID', sort: true }
					, { field: 'ProductName', width: 80 , title: '寄托物' }
					, { field: 'ReceiveAddress', minWidth: 150 , title: '地址', sort: true }
					, { field: 'ReceiveMobile', width: 120, title: '电话' }
					, { field: 'ReceiveName', title: '收件人', width: 80 }
					, { field: 'WeightGram', width: 80, title: '重量', sort: true }
					, { field: 'Status', minWidth: 30, title: '状态' }
					, { field: 'createdAt', width: 165, title: '下单时间', sort: true } 
					, { field: 'updatedAt', width: 165, title: '更新时间', sort: true }
				]]
				, page: true
			});
		});
	</script> 
</body>
</html>
